package com.zmz.Stream;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Create with IntelliT IDEA
 *
 * @Author: zhengmingzhe
 * @Date: 2023/02/02/11:19
 * @Description: 代码测试
 */
public class CodeTest {
    public static void main(String[] args) {
//        Double double1 = Double.valueOf(null + "");
        Map<String, String> map1 = new HashMap<>();
        //上面的null情况会出先空指针异常
//        List<String> test = null;
        List<String> test2 = new ArrayList<>();
/*        for (String a : test) {
            System.out.println(a);
        }*/
//        test.stream().forEach(n -> System.out.println(n));
        test2.stream().forEach(n -> System.out.println(n));
//        System.out.println(test.size());
//        System.out.println(map1.get(1));
//        System.out.println(double1);
        System.out.println(2000 * 100 / 40000);
        System.out.println(30 * 100 / 100);
        System.out.println(2 % 3);
    }
}
